package org.edu.modules.center.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@TableName("ve_service_forum_post")
@ApiModel(value="ve_service_forum_post对象", description="论坛帖子表")
public class VeServiceForumPostVo
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    @ApiModelProperty("主键ID，自增长")
    private Integer id;
    @ApiModelProperty("版块ID")
    private Integer forumid;
    @ApiModelProperty("帖子标题")
    private String title;
    @ApiModelProperty("帖子内容")
    private String content;
    @ApiModelProperty("发布帖子时间")
    private Integer createtime;
    @ApiModelProperty("更新时间")
    private Integer updatetime;
    @ApiModelProperty("状态（0=禁用，1=启用，-1=删除）")
    private Integer status;
    @ApiModelProperty("最后回复时间")
    private Integer lasttime;
    @ApiModelProperty("浏览数量")
    private Integer viewcount;
    @ApiModelProperty("回复数量")
    private Integer replycount;
    @ApiModelProperty("是否置顶0不置顶1版内置顶")
    private Integer istop;
    @ApiModelProperty("发帖子用户ID,传0时为当前登录用户id")
    private Integer userid;
    @ApiModelProperty("发帖子用户名称")
    private String username;
    @ApiModelProperty("多租户id")
    private Integer placeId;
    @ApiModelProperty("教学活动id")
    private Integer tcid;

    public VeServiceForumPostVo setTitle(String title)
    {
        this.title = title;return this;
    }

    public VeServiceForumPostVo setForumid(Integer forumid)
    {
        this.forumid = forumid;return this;
    }

    public VeServiceForumPostVo setId(Integer id)
    {
        this.id = id;return this;
    }

    public String toString()
    {
        return "VeServiceForumPostVo(id=" + getId() + ", forumid=" + getForumid() + ", title=" + getTitle() + ", content=" + getContent() + ", createtime=" + getCreatetime() + ", updatetime=" + getUpdatetime() + ", status=" + getStatus() + ", lasttime=" + getLasttime() + ", viewcount=" + getViewcount() + ", replycount=" + getReplycount() + ", istop=" + getIstop() + ", userid=" + getUserid() + ", username=" + getUsername() + ", placeId=" + getPlaceId() + ", tcid=" + getTcid() + ")";
    }

    public VeServiceForumPostVo setTcid(Integer tcid)
    {
        this.tcid = tcid;return this;
    }

    public VeServiceForumPostVo setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeServiceForumPostVo setUsername(String username)
    {
        this.username = username;return this;
    }

    public VeServiceForumPostVo setUserid(Integer userid)
    {
        this.userid = userid;return this;
    }

    public VeServiceForumPostVo setIstop(Integer istop)
    {
        this.istop = istop;return this;
    }

    public VeServiceForumPostVo setReplycount(Integer replycount)
    {
        this.replycount = replycount;return this;
    }

    public VeServiceForumPostVo setViewcount(Integer viewcount)
    {
        this.viewcount = viewcount;return this;
    }

    public VeServiceForumPostVo setLasttime(Integer lasttime)
    {
        this.lasttime = lasttime;return this;
    }

    public VeServiceForumPostVo setStatus(Integer status)
    {
        this.status = status;return this;
    }

    public VeServiceForumPostVo setUpdatetime(Integer updatetime)
    {
        this.updatetime = updatetime;return this;
    }

    public VeServiceForumPostVo setCreatetime(Integer createtime)
    {
        this.createtime = createtime;return this;
    }

    public VeServiceForumPostVo setContent(String content)
    {
        this.content = content;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $forumid = getForumid();result = result * 59 + ($forumid == null ? 43 : $forumid.hashCode());Object $createtime = getCreatetime();result = result * 59 + ($createtime == null ? 43 : $createtime.hashCode());Object $updatetime = getUpdatetime();result = result * 59 + ($updatetime == null ? 43 : $updatetime.hashCode());Object $status = getStatus();result = result * 59 + ($status == null ? 43 : $status.hashCode());Object $lasttime = getLasttime();result = result * 59 + ($lasttime == null ? 43 : $lasttime.hashCode());Object $viewcount = getViewcount();result = result * 59 + ($viewcount == null ? 43 : $viewcount.hashCode());Object $replycount = getReplycount();result = result * 59 + ($replycount == null ? 43 : $replycount.hashCode());Object $istop = getIstop();result = result * 59 + ($istop == null ? 43 : $istop.hashCode());Object $userid = getUserid();result = result * 59 + ($userid == null ? 43 : $userid.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());Object $tcid = getTcid();result = result * 59 + ($tcid == null ? 43 : $tcid.hashCode());Object $title = getTitle();result = result * 59 + ($title == null ? 43 : $title.hashCode());Object $content = getContent();result = result * 59 + ($content == null ? 43 : $content.hashCode());Object $username = getUsername();result = result * 59 + ($username == null ? 43 : $username.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeServiceForumPostVo;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeServiceForumPostVo)) {
            return false;
        }
        VeServiceForumPostVo other = (VeServiceForumPostVo)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$forumid = getForumid();Object other$forumid = other.getForumid();
        if (this$forumid == null ? other$forumid != null : !this$forumid.equals(other$forumid)) {
            return false;
        }
        Object this$createtime = getCreatetime();Object other$createtime = other.getCreatetime();
        if (this$createtime == null ? other$createtime != null : !this$createtime.equals(other$createtime)) {
            return false;
        }
        Object this$updatetime = getUpdatetime();Object other$updatetime = other.getUpdatetime();
        if (this$updatetime == null ? other$updatetime != null : !this$updatetime.equals(other$updatetime)) {
            return false;
        }
        Object this$status = getStatus();Object other$status = other.getStatus();
        if (this$status == null ? other$status != null : !this$status.equals(other$status)) {
            return false;
        }
        Object this$lasttime = getLasttime();Object other$lasttime = other.getLasttime();
        if (this$lasttime == null ? other$lasttime != null : !this$lasttime.equals(other$lasttime)) {
            return false;
        }
        Object this$viewcount = getViewcount();Object other$viewcount = other.getViewcount();
        if (this$viewcount == null ? other$viewcount != null : !this$viewcount.equals(other$viewcount)) {
            return false;
        }
        Object this$replycount = getReplycount();Object other$replycount = other.getReplycount();
        if (this$replycount == null ? other$replycount != null : !this$replycount.equals(other$replycount)) {
            return false;
        }
        Object this$istop = getIstop();Object other$istop = other.getIstop();
        if (this$istop == null ? other$istop != null : !this$istop.equals(other$istop)) {
            return false;
        }
        Object this$userid = getUserid();Object other$userid = other.getUserid();
        if (this$userid == null ? other$userid != null : !this$userid.equals(other$userid)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();
        if (this$placeId == null ? other$placeId != null : !this$placeId.equals(other$placeId)) {
            return false;
        }
        Object this$tcid = getTcid();Object other$tcid = other.getTcid();
        if (this$tcid == null ? other$tcid != null : !this$tcid.equals(other$tcid)) {
            return false;
        }
        Object this$title = getTitle();Object other$title = other.getTitle();
        if (this$title == null ? other$title != null : !this$title.equals(other$title)) {
            return false;
        }
        Object this$content = getContent();Object other$content = other.getContent();
        if (this$content == null ? other$content != null : !this$content.equals(other$content)) {
            return false;
        }
        Object this$username = getUsername();Object other$username = other.getUsername();return this$username == null ? other$username == null : this$username.equals(other$username);
    }

    public Integer getId()
    {
        return this.id;
    }

    public Integer getForumid()
    {
        return this.forumid;
    }

    public String getTitle()
    {
        return this.title;
    }

    public String getContent()
    {
        return this.content;
    }

    public Integer getCreatetime()
    {
        return this.createtime;
    }

    public Integer getUpdatetime()
    {
        return this.updatetime;
    }

    public Integer getStatus()
    {
        return this.status;
    }

    public Integer getLasttime()
    {
        return this.lasttime;
    }

    public Integer getViewcount()
    {
        return this.viewcount;
    }

    public Integer getReplycount()
    {
        return this.replycount;
    }

    public Integer getIstop()
    {
        return this.istop;
    }

    public Integer getUserid()
    {
        return this.userid;
    }

    public String getUsername()
    {
        return this.username;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }

    public Integer getTcid()
    {
        return this.tcid;
    }
}
